Morphological Gradient
Check options and parameters of morphologicalGradient method
caution
This method works only with images.
The morphological gradient is a mathematical operation used in image processing and mathematical morphology to highlight the boundaries of objects or regions within an image. It is a fundamental concept in morphological image analysis and is often used for tasks such as edge detection and image segmentation. The morphological gradient is based on the difference between an image after dilation and the same image after erosion.


Parameters and default values
options
Options
Property | Required | Default value |
---|---|---|
iterations | no | 1 |
kernel | no | [[1, 1, 1],[1, 1, 1],[1, 1, 1]] |